<nav>
  <% link_class = "page-link icon-link text-center text-nowrap" %>
  <ul class="pagination">
    <% previous_link_content = capture do %>
      <%= previous_page_svg_tag :class => "flex-shrink-0" %>
      <%= t(".previous") %>
    <% end %>
    <% if @page > 1 %>
      <li class="page-item">
        <%= link_to previous_link_content, @params.merge(:page => @page - 1), :class => link_class %>
      </li>
    <% else %>
      <li class="page-item disabled">
        <%= tag.span previous_link_content, :class => link_class %>
      </li>
    <% end %>

    <li class="page-item active">
      <%= tag.span t(".showing_page", :page => @page), :class => link_class %>
    </li>

    <% next_link_content = capture do %>
      <%= t(".next") %>
      <%= next_page_svg_tag :class => "flex-shrink-0" %>
    <% end %>
    <% if @next_page %>
      <li class="page-item">
        <%= link_to next_link_content, @params.merge(:page => @page + 1), :class => link_class %>
      </li>
    <% else %>
      <li class="page-item disabled">
        <%= tag.span next_link_content, :class => link_class %>
      </li>
    <% end %>
  </ul>
</nav>
